package com.feng;

import com.feng.common.boot.BannerTitle;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.config.server.EnableConfigServer;

/**
 * Hello world!
 *
 */
@EnableConfigServer  //配置中心
@SpringBootApplication
@EnableDiscoveryClient  //表示向注册中心注册。
public class ConfigServerApplication
{
    public static void main(String[] args) {
//        SpringApplication.run(ConfigServerApplication.class, args);
        new SpringApplicationBuilder(ConfigServerApplication.class)
                .banner(new BannerTitle("Config Server Manager Start...."))
                .logStartupInfo(true)
                .run(args);
    }
}
